import request from '@/utils/request'

// 查询自定义短语列表
export function listCustomPhrase(query) {
  return request({
    url: '/comlbs/customPhrase/list',
    method: 'get',
    params: query
  })
}

// 查询自定义短语详细
export function getCustomPhrase(id) {
  return request({
    url: '/comlbs/customPhrase/' + id,
    method: 'get'
  })
}

// 新增自定义短语
export function addCustomPhrase(data) {
  return request({
    url: '/comlbs/customPhrase',
    method: 'post',
    data: data
  })
}

// 修改自定义短语
export function updateCustomPhrase(data) {
  return request({
    url: '/comlbs/customPhrase',
    method: 'put',
    data: data
  })
}

// 删除自定义短语
export function delCustomPhrase(id) {
  return request({
    url: '/comlbs/customPhrase/' + id,
    method: 'delete'
  })
}
